﻿@using WineStore.Extends;
@model IList<WineStore.Models.Location>
@{
    ViewBag.Title = "ShowLocation";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
@section Styles
{
    <style type="text/css">
        td {
            text-align: center;
            vertical-align: middle;
        }
    </style>
}
@section Scripts
{
    <!--Sử dụng cho row hover-->
    <script type="text/javascript">
        $(document).ready(function () {
            $("tr").not(':first').hover(function () {
                $(this).css("background", "#F0FFFF");
            }, function () {
                $(this).css("background", "");
            }
            );
        });
    </script>

}
<!-- Table (TABLE) -->
<h3 class="tit">Management Location
</h3>
@using (Html.BeginForm())
{
    <table border="1" style="width: 50%">
        <tr>
            <th>Location (English)
            </th>
            <th>Location (German)
            </th>

            <th>Even</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>

                <td>
                    @Html.Raw(item.Description_EN)
                </td>
                <td>
                    @Html.Raw(item.Description_GER)
                </td>
                <td>
                    @Html.ActionLink("Edit", "EditLocation", new { id = item.LocationId })
                </td>
            </tr>
        }
    </table>
}

